package com.smooth.mall.service;

import com.smooth.mall.exception.SmoothMallException;
import com.smooth.mall.model.pojo.User;

public interface UserService {
    User getUser(Integer id);

    void register(String username,String password) throws SmoothMallException;

    User login(String username, String password) throws SmoothMallException;

    public void updateInformation(User user) throws SmoothMallException;

    public boolean checkAdminRole(User user) ;

}
